package com.fengr.basic.mapper;

import com.fengr.basic.query.BasicQuery;

import java.util.List;

public interface BasicMapper<T> {
    T findOne(Long id);
    List<T> loadAll();
    void insert(T t);
    void delete(Long id);
    void update(T t);
    Integer totals(BasicQuery query);
    List<T> queryData(BasicQuery query);
    void patchDelete(List<Long> ids);
}
